import {postRequest} from '@/utils/api'
import {param} from '.'

const $serviceListApi = {
  //分页获取服务信息
  getServiceList: (param) => {
    return postRequest('/service/inner/serviceMetadata/page', param)
  },
  //服务注册
  registerService: (param) => {
    return postRequest('/service/inner/serviceMetadata/register', param)
  },
  //服务更新(服务编辑)
  updateService: (param) => {
    return postRequest('/service/inner/serviceMetadata/update', param)
  },
  //
  getServiceDetails: (param) => {
    return postRequest(`/service/inner/serviceMetadata/by/baseInfoId?base_info_id=${param}`, param)
  },
  //服务删除
  deleteService: (param) => {
     return postRequest('/service/inner/serviceMetadata/delete', param)
}
}
export default $serviceListApi
